//
//  YYPlay.m
//  Style
//
//  Created by dllo on 15/10/6.
//  Copyright (c) 2015年 dllo. All rights reserved.
//


#import "YYPlay.h"

@implementation YYPlay

+(YYPlay *)share
{
    static YYPlay *play = nil;
    if (play == nil) {
        play = [[YYPlay alloc]init];
    }
    return play;
}
-(void)playWithUrl:(NSURL *)url
{
    [self stop];
    self.player = [[STKAudioPlayer alloc] init];
    [self.player playURL:url];
}
-(void)stop
{
    if (self.player) {
        [self.player stop];
    }
}
-(void)pause //暂停
{
    [self.player pause];
}
-(void)resume //播放
{
    [self.player resume];
}


@end
